package com.esun.payment_api.service;

import com.esun.common.api.CommonResult;
import com.esun.payment_api.bean.AttachOpenIdBean;
import com.esun.payment_api.bean.WxExaminerBean;
import com.esun.payment_api.bean.WxMessageBean;
import com.esun.payment_api.domain.XcxInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface XcxInfoService {
    //获取appId和AppSecret
    XcxInfo getApp();

    int updateById(XcxInfo xcxInfo);

    //向一个用户推送消息
    String sendWxMessage(Integer flowId);

    WxMessageBean getWxMessageBean(Integer flowId);

    List<WxExaminerBean> getOpenIdList(Integer flowId);

    List<WxExaminerBean> getOperatorOpenIdList(Integer flowId);

    CommonResult attachOpenId(AttachOpenIdBean attachOpenIdBean);

    Integer getFlowIdAndSend(Short flowType, Integer fromId);

    CommonResult test(Integer flowId);

}
